package com.eliza.library.utils.compose

import android.content.Context
import coil.request.ImageRequest
import com.eliza.library.R

object ImageBuild {
    val CoilImageRequest = fun(context: Context, url: Any) = builder(context)
        .data(url)
        .crossfade(true).build()

    private fun builder(context: Context) =
        ImageRequest.Builder(context).placeholder(R.drawable.background)

}

